package com.ugoodtech.mdcc.client.service;

/**
 * Created by Xiangcheng Li
 *
 * @author Xiangcheng Li
 */
public interface WeChatCallbackService {

    /**
     * 校验url
     * @param token
     * @param echoStr
     * @param timestamp
     * @param nonce
     * @param msgSign
     * @return
     */
    String verifyUrl(String echoStr, String timestamp, String nonce, String msgSign);


    /**
     * 设置公众号菜单
     *
     * @param link
     * @return
     */
    void addMenu(String link);


    Boolean handleCallback(String encrypt, String timestamp, String nonce, String msgSign);

    Boolean getUnionIdOfOldOpenId();

}
